export const request = (url, data = {}, method = 'POST') => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: url,
			data,
			method,
			header: {
				token: ''
			},
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}